<!--TopView普通卡片-->
<template>
  <div class="common-card">
    <div class="title">{{ title }}</div>
    <div class="value">{{ value }}</div>
    <div class="chart">
      <slot></slot>
    </div>
    <div class="line"/>
    <div class="total">
      <slot name="footer"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String
    },
    value: {
      type: String
    }
  }
}
</script>

<style lang="scss" scoped>
.common-card {
  .title {
    font-size: 12px;
    color: #999999;
  }

  .value {
    font-size: 25px;
    color: #000000;
    margin-top: 5px;
    letter-spacing: 1px;
  }

  .chart {
    height: 50px;
    //background: deeppink;
  }

  .line {
    margin: 10px 0;
    border-top: 1px solid #eee;
  }

  .total {
    font-size: 12px;
    color: #666;
  }

}
</style>
